export default {
  namespaced: true,
  state: ()=>({
    history: JSON.parse(uni.getStorageSync('history')|| []) 
  }),
  mutations:{
    saveHistoryToStorage(state){
      uni.setStorageSync('history',JSON.stringify(state.history))
    },
    updateHistory(state,history){
      state.history = history
      this.commit('m_search/saveHistoryToStorage')
      
    }
  },
  getters:{
    
  }
}